package com.info.zhiduoduo.common.configs;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
@Component
@ConfigurationProperties(prefix = "javamail.smtp")
@PropertySource("classpath:mail.properties")
public class MailConfig {

	private String host;
	private int port;
	private String username;
	private String password;
	private String defaultSubject;
	private String defaultFromName;

	private String contractMailContent;

}
